package com.eureka.asyn.service;

import com.eureka.bclass.base.BaseMailEntity;
import org.springframework.scheduling.annotation.Async;

import javax.mail.MessagingException;
import java.util.concurrent.CompletableFuture;

/**
 * @description: 邮件服务
 * @author: lixing
 * @time: 2021/6/6 12:37
 */
public interface MailService {
    /**
     * @Description 发送html格式邮件
     * @Author lixing
     * @Date 2019/8/11 17:33
     */
    @Async("api-asyn-taskExecutor")
    CompletableFuture<Boolean> sendHtmlMail(BaseMailEntity baseMailEntity) throws MessagingException;
}
